home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
TASEXAM6.ARJ
/
GRAPHALL.TAS
< prev
next >
Wrap
Text File
|
1992-04-12
|
2KB
|
49 lines
{
A script written to simply graph all stocks in the ticker list. Good for
checking up on your current holds, or those which you are interested in
watching closely. It should be noted that the volume 5MA and 10MA
calculations do not include today, rather they end yesterday. They are
intended to show how volume has behaved in the one-week and two-week
periods immediately prior to today.
Stocks with less than 201 days of data will be passed.
Written 3/28/92 by Tom Rategan.
}
if quote_count < 201 then return;
#max_quotes 255
qc = (quote_count-1);
hiqc : array;
hiqc = hhv(c,qc);
oh = (1-(c[0]/hiqc[0]))*100;
chg = c[0]-c[-1];
hi30 : array;
lo30 : array;
hi30 = hhv(c,30);
lo30 = llv(c,30);
r30 = (1-(lo30/hi30))*100;
p50 : array;
p50 = mov(c,50,'s');
if c[0] >= p50[0] then off50 = (1-(p50[0]/c[0]))*100;
if c[0] < p50[0] then off50 = (1-(c[0]/p50[0]))*100;
p200 : array;
p200 = mov(c,200,'s');
if c[0] >= p200[0] then off200 = (1-(p200[0]/c[0]))*100;
if c[0] < p200[0] then off200 = (1-(c[0]/p200[0]))*100;
v50 : array;
v50 = mov(v,50,'s');
vv50 = (v[0]/v50[0])*100;
v5 = (v[-1]+v[-2]+v[-3]+v[-4]+v[-5])/5;
v5v50 = (v5/v50[0])*100;
v10 = (v[-1]+v[-2]+v[-3]+v[-4]+v[-5]+v[-6]+v[-7]+v[-8]+v[-9]+v[-10])/10;
v10v50 = (v10/v50[0])*100;
opengraph(2);
sizegraph(4,2);
graph(1,' '+format(c[0],'$%3.2f')+' is '+format(oh,'%2.1f%')+
' off '+format(hiqc[0],'$%3.2f')+' high. Change= '+format(chg,'$%2.2f')
+' 30 Day Range= '+format(r30,'%3.1f%'),p50,''+format(off50,'%2.f%')+
' off 50MA',p200,''+format(off200,'%2.f%')+' off 200MA');
graph(v,'Today='+format(v[0],'%5.f')+' 50MA='+format(v50[0],'%5.f')
+' %Today='+format(vv50,'%4.f%')+' 5MA= '+format(v5v50,'%3.f%')
+' 10MA= '+format(v10v50,'%3.f%')+' of',v50,'50MA');
closegraph();
return;